
<div id="header">
				   <div id="market" style="float:right; position:relative; top:7px;">
									
				
                <select onchange="if (this.selectedIndex > 0) document.location.href='<?php echo UrL?>?' + this.value;">	
                   <option>Ngôn ngữ</option>
                    <option   value="lag=vn" <?php if ($this->Session->read('lag')==0){ echo 'selected="selected"';}?>><?php echo $NN_leng?></option>	
                    <option value="lag=eg" <?php if ($this->Session->read('lag')==1){ echo 'selected="selected"';}?>>English</option>
                   
                </select>
                </div>
				 <ul id="edit">
					 <li><a  href="<?php echo System ?>" target="_blank"><?php echo $NN_login?></a>
                    
                     </li>							 	
				 </ul>
				<span class="clear"></span>
				<div id="nav" >
				<ul class="content menu_parent">
                <?php $subTop = $this->requestAction('/comment/subTop');
					  $subMenu = $this->requestAction('/comment/subMenu'); 
				
					foreach($subTop as $sub){
				?>
                <li>
				<?php
				if($sub['Category']['type']==0){
				echo $html->link($sub['Category']['name'], array('controller'=>'home'));
				}elseif($sub['Category']['type']==1){
					echo $html->link($sub['Category']['name'], array('controller'=>'products',$sub['Category']['id'],$sub['Category']['alias'].'.html'));
					?>
                     <ul class='dropdown edit_down menu_parent'>
                     <?php foreach($subMenu as $key) {
						if($key['Category']['parent_id']==$sub['Category']['id']){	 
					?>
                            <li><?php echo $html->link($key['Category']['name'], array('controller'=>'products',$key['Category']['id'],$key['Category']['alias'].'.html'));?></li>
                        <?php }}?>    
                        </ul>
				<?php }elseif($sub['Category']['type']==2){
					echo $html->link($sub['Category']['name'], array('controller'=>'news',$sub['Category']['id'],$sub['Category']['alias'].'.html'));
					
					?>
                     <ul class='dropdown edit_down menu_parent'>
                     <?php foreach($subMenu as $key) {
						if($key['Category']['parent_id']==$sub['Category']['id']){	 
					?>
                            <li><?php echo $html->link($key['Category']['name'], array('controller'=>'news',$key['Category']['id'],$key['Category']['alias'].'.html'));?></li>
                        <?php } }?>    
                        </ul>
				<?php
				}elseif($sub['Category']['type']==5){
					echo $html->link($sub['Category']['name'], array('controller'=>'contacts',$sub['Category']['id'],$sub['Category']['alias'].'.html'));
				}elseif($sub['Category']['type']==3){
					echo $html->link($sub['Category']['name'], array('controller'=>'newsrooms',$sub['Category']['id'],$sub['Category']['alias'].'.html'));
				}
				 
				 ?>
				 
				 ?>
                 
                 </li>
                <?php }?>	
	 </ul>
		</div>
		<span class="clear"></span>
</div>